﻿using System.ComponentModel.DataAnnotations.Schema;

namespace ZhiJiao.Models.Entities
{
    //[Table("Students")]
    public class Student :BaseEntity
    {
        /// <summary>
        /// 对应家长
        /// </summary>
        public Member? Parent { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        public string AgeText { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        public DateTime? Birthday { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public StudentSex Sex { get; set; }

        /// <summary>
        /// 关系
        /// </summary>
        public SMRelationShip RelationShip { get; set; }

        /// <summary>
        /// 所属机构
        /// </summary>
        public Instruction Instruction { get; set; }

        /// <summary>
        /// 学生测试
        /// </summary>
        public List<MemberEvaluation>? MemberEvaluations { get; set; }
    }
}
